<?php
class Message extends AppModel
{
	public $name = "Message";
	
	public $validate = array('name' =>
	                          array('rule' => 'alphaNumeric',
	                                'required' => true,
	                                'message' => 'Alphabets and numbers only'
	                                ),
	                         'email' =>
	                          array('rule' => 'email',
	                                'required' => true,
                                    'message' => 'Please provide a valid email address'
	                                ),
	                         'body' => 
                              array('rule' => 'notEmpty',
	                                'required' => true,
	                                'message' => 'This field cannot be left blank'
	                                )
	                         );
}
?>